#ifndef XVIDEOWIDGET_H
#define XVIDEOWIDGET_H

#include <QOpenGLWidget>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>

class XVideoWidget : public QOpenGLWidget
{
    Q_OBJECT
public:
    explicit XVideoWidget(QWidget *parent = nullptr);

signals:

public slots:
    void do_setImage(cv::Mat mat);

protected:
    void paintEvent(QPaintEvent* e);

private:
    QImage img;
};

#endif // XVIDEOWIDGET_H
